<?php
	include "core/mysql.php";
	$comment_id=$_GET['id'];
	$Fabulous=$_GET['Fabulous'];
	 session_start();
	$_SESSION['comment_id']=$id;
	$arr = $_SESSION['name'];
//写更新语句
$sql="UPDATE tbl_comment SET Fabulous =$Fabulous WHERE id=$comment_id";
//执行query方法
$res = query($sql); 
$sqll="INSERT INTO news_zan(user_name,comment_id)VALUES('$arr','$comment_id')";
 query($sqll);
?>